import mitt from 'mitt'
import { Events } from '~/types/mitt'

const emitter = mitt<Events>()

export const bus = {
  $on: emitter.on,
  $off: emitter.off,
  $emit: emitter.emit
}
